<?php 

namespace Home\Controller;
use Think\Controller;

class WalletController extends Controller{



 //空操作
   public function _empty()
   {
    	$this ->display('Empty/error');
   }


  
   /*
   ** 发放红包
    */
    /*public function faHongbao()
    {
      $id = session('id');
      $redbags = M('redbags');
      $hongbaos = $redbags->find("$id");
      //查询出红包的字符串
      $hongbaos = $hongbaos['redbags'];
      //把字符串变成数组
      $hongbaos = explode(",", $hongbaos);
      //dump($hongbaos);die;
      //删掉一个数组元素，然后再次变为字符串进行保存
      $hongbao = array_shift($hongbaos);
      $hongbaos = implode(",",$hongbaos);
      $data['redbags'] = $hongbaos;
      //dump($data);die;
      $redbags->where("id=$id")->save($data);
      echo $hongbao;
      

    }*/













 }

